<layout name="master" />
<div class="row">
    <ol class="breadcrumb">
        <li><a href="{:U('Home/Index/index')}"><span class="glyphicon glyphicon-home"></span></a></li>
        <li>会员信息管理</li>
        <li class="active">最新增添会员</li>
    </ol>
</div><!--/.row-->
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">最新增添会员</h1>
    </div>
</div>
<ul class="nav nav-tabs" role="tablist">
    <li><a href="{:U('Home/Vip/index')}">会员查询</a></li>
    <li><a href="{:U('Home/Vip/add')}">增添会员</a></li>
    <li class="active"><a href="#">最新增添会员</a></li>
</ul>
<form action="" method="post">
    <div class="panel panel-default">
        <div class="panel-body">

                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th width="80">会员编号</th>
                        <th>会员姓名</th>
                        <th>会员手机号</th>
                        <th>会员宠物类型</th>
                        <th>账户金额</th>
                        <th>增添时间</th>
                        <th width="200">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="list" id="vo">
                        <tr>
                            <td>{$vo['vip_id']}</td>
                            <td style="color: red">{$vo['vip_name']}</td>
                            <td>{$vo['vip_photo']}</td>
                            <td style="color: green">{$vo['vip_pid']['typename']}</td>
                            <td style="color: red">￥：{$vo['vip_money']} rmb</td>
                            <td><?php echo date("Y-m-d H:i:s", $vo['vip_time']) ?></td>
                            <td>
                                <div class="btn-group">
                                    <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span></button>
                                    <ul class="dropdown-menu dropdown-menu-right">
                                        <li><a href="{:U('Home/Vip/resmoney',['id'=>$vo['vip_id']])}">消费</a></li>
                                        <li class="divider"></li>
                                        <li><a href="{:U('Home/Vip/addmoney',['id'=>$vo['vip_id']])}">充值</a></li>
                                        <li class="divider"></li>
                                        <li><a href="{:U('Home/Vip/edit',['id'=>$vo['vip_id']])}">修改会员信息</a></li>
                                        <li class="divider"></li>
                                        <li><a href="{:U('Home/Vip/del',['id'=>$vo['vip_id']])}">删除</a></li>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>


        </div>
    </div>
</form>
<nav>
    <ul class="pagination pagination-sm">
        {$page}
    </ul>
</nav>
<style>
    .pagination-sm a{
        color: dodgerblue;
        border: 1px solid beige;
        text-decoration: none;
        padding: 5px 10px;
        background: #e9ecf2;
        border-radius: 5px;
    }
    .pagination-sm a:hover{
        background: black;
        color: white;
        transition: 1s all;
    }
    .pagination-sm span{
        border: 1px solid beige;
        padding: 5px 10px;
        background: #e9ecf2;
        border-radius: 5px;
    }
</style>